package com.example.android.network;

public class PacketParser {
	private String packet;
	private InPacketType packetType;
	private String[] values;

	public PacketParser(String packet) {
		this.packet = packet;
		System.err.println(packet.substring(0, 1));
		packetType = InPacketType.retranslate(packet.substring(0, 1));
		values = packet.substring(1).split(Constants.valSeparator);
	}

	public String getPacket() {
		return packet;
	}

	public InPacketType getPacketType() {
		return packetType;
	}

	public String[] getValues() {
		return values;
	}

}